PROGRAM := simmatch

CXXFLAGS := -Wall -std=c++11 -m64 -g -O3 -D__STDC_FORMAT_MACROS
LDFLAGS := -L. -L./event2/lib
INCLUDES := -I. -I./event2/include_linux
LIBS := -levent_core

SRCS := $(wildcard *.cpp)
OBJS := $(SRCS:.cpp=.o)
 

$(PROGRAM) : $(OBJS)
	$(CXX) -o $@ $^ $(LDFLAGS) $(LIBS)

$(OBJS) : $(SRCS)
	$(CXX) -c $(CXXFLAGS) $(INCLUDES) $^

.PHONY : clean
clean :
	-$(RM) $(PROGRAM) *.o